package com.kebabeaters.nakebab.client.ui.view;

import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.cellview.client.CellList;
import com.google.gwt.user.client.ui.Button;
import com.google.gwt.user.client.ui.FlowPanel;
import com.google.gwt.user.client.ui.Label;
import com.google.gwt.user.client.ui.TextBox;
import com.google.gwt.user.client.ui.Widget;
import com.gwtplatform.mvp.client.ViewImpl;
import com.kebabeaters.nakebab.client.presenter.KebabRankingPresenter.ListEntry;

public class RestaurantSearchView extends ViewImpl  {

	public interface Binder extends UiBinder<Widget, RestaurantSearchView> {
	}

	private final Binder uiBinder = GWT.create(Binder.class);

	private Widget widget;

	@UiField
	protected FlowPanel mainContainer;
	@UiField(provided = true)
	protected CellList<ListEntry> cellList;
	
	@UiField
	protected TextBox nameText;
	
	@UiField
	protected TextBox addressText;
	
	@UiField
	protected Label header;

	@UiField
	protected Label nameLabel;

	@UiField
	protected Label addressLabel;
	
	@UiField
	protected Button searchButton;

	public RestaurantSearchView() {
		widget = uiBinder.createAndBindUi(this);
	}

	@Override
	public Widget asWidget() {
		return widget;
	}
}
